Filename | (eval 1180)[/usr/share/perl5/Sub/Quote.pm:5] |
Statements | Executed 3 statements in 10µs |
Eval Invoked At | /usr/share/perl5/Sub/Quote.pm line 5 |
Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
5 | 3 | 3 | 82µs | 4.31ms | select | DBIx::Class::Storage::DBI::
1 | 1 | 1 | 24µs | 42µs | BEGIN@5.2979 | Sub::Quote::
1 | 1 | 1 | 11µs | 11µs | BEGIN@11.2980 | DBIx::Class::Storage::DBI::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | { | ||||
2 | my $orig = ${$_[1]->{"\$orig"}}; | ||||
3 | my $_QUOTED = ${$_[1]->{"\$_QUOTED"}}; | ||||
4 | my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}}; | ||||
5 | 2 | 61µs | # spent 42µs (24+19) within Sub::Quote::BEGIN@5.2979 which was called:
# once (24µs+19µs) by Sub::Quote::_clean_eval at line 5 # spent 42µs making 1 call to Sub::Quote::BEGIN@5.2979
# spent 18µs making 1 call to warnings::unimport | ||
6 | # spent 4.31ms (82µs+4.23) within DBIx::Class::Storage::DBI::select which was called 5 times, avg 862µs/call:
# 2 times (61µs+3.55ms) by DBIx::Class::ResultSet::cursor at line 46, avg 1.81ms/call
# 2 times (18µs+674µs) by DBIx::Class::ResultSet::cursor at line 1026 of DBIx/Class/ResultSet.pm, avg 346µs/call
# once (3µs+0s) by DBIx::Class::ResultSet::cursor at line 56 of Sub/Defer.pm | ||||
7 | $_QUOTED if 0; | ||||
8 | 1 | 100ns | $_UNQUOTED if 0; | ||
9 | # BEGIN quote_sub PRELUDE | ||||
10 | package DBIx::Class::Storage::DBI; | ||||
11 | # spent 11µs within DBIx::Class::Storage::DBI::BEGIN@11.2980 which was called:
# once (11µs+0s) by Sub::Quote::_clean_eval at line 16 | ||||
12 | $^H = "133090"; | ||||
13 | ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUU"; | ||||
14 | %^H = ( | ||||
15 | ); | ||||
16 | 1 | 11µs | } # spent 11µs making 1 call to DBIx::Class::Storage::DBI::BEGIN@11.2980 | ||
17 | # END quote_sub PRELUDE | ||||
18 | |||||
19 | 1 | 2µs | if ( | ||
20 | # only fire when invoked on an instance, a valid class-based invocation | ||||
21 | # would e.g. be setting a default for an inherited accessor | ||||
22 | ref $_[0] | ||||
23 | and | ||||
24 | ! $_[0]->{_driver_determined} | ||||
25 | and | ||||
26 | ! $_[0]->{_in_determine_driver} | ||||
27 | and | ||||
28 | # if this is a known *setter* - just set it, no need to connect | ||||
29 | # and determine the driver | ||||
30 | ( 1 or @_ <= 1 ) | ||||
31 | and | ||||
32 | # Only try to determine stuff if we have *something* that either is or can | ||||
33 | # provide a DSN. Allows for bare $schema's generated with a plain ->connect() | ||||
34 | # to still be marginally useful | ||||
35 | $_[0]->_dbi_connect_info->[0] | ||||
36 | ) { | ||||
37 | $_[0]->_determine_driver; | ||||
38 | |||||
39 | # work around http://rt.perl.org/rt3/Public/Bug/Display.html?id=35878 | ||||
40 | goto $_[0]->can("select") unless DBIx::Class::_ENV_::BROKEN_GOTO; | ||||
41 | |||||
42 | my $cref = $_[0]->can("select"); | ||||
43 | goto $cref; | ||||
44 | } | ||||
45 | |||||
46 | 1 | 8µs | 2 | 3.62ms | goto $orig; # spent 3.62ms making 2 calls to DBIx::Class::Storage::DBI::select, avg 1.81ms/call |
47 | } | ||||
48 | $$_UNQUOTED = \&DBIx::Class::Storage::DBI::select | ||||
49 | } | ||||
50 | 1; | ||||
51 | |||||
52 | ; |